import LayoutVue from '@/components/layout/Layout.vue'

export default {
  path: '/propagandizeDirective',
  component: LayoutVue,
  redirect: '/propagandizeDirective/pendingReviewDirective',
  meta: {
    title: '正面宣传指令',
    c_icon: 'icon-directive',
    menu: true,
    url: 'article/positive/instruct',
  },
  children: [
    {
      path: 'pendingReviewDirective',
      name: 'pendingReviewDirective',
      component: () =>
        import('@/views/manageEnd/PropagandizeDirective/PendingReviewDirective/PendingReviewDirective.vue'),
      meta: { title: '待审核指令', url: 'instruct/needAudit' },
    },
    {
      path: 'allDirective',
      name: 'allDirective',
      component: () => import('@/views/manageEnd/PropagandizeDirective/allDirective/allDirective.vue'),
      meta: { title: '全部指令', url: 'instruct/list' },
    },

    /* 此路由为了跳转到详情创建，父级路由为了占位，否则顶部的当前位置显示不对。无其他作用。*/
    {
      path: 'allDirective',
      name: 'allDirectivePlaceholder',
      component: () => import('@/views/manageEnd/PropagandizeDirective/AllDirective/AllDirectivePlaceholder.vue'),
      meta: { title: '全部指令', hidden: true, whiteList: true },
      children: [
        {
          path: 'all_createDirective',
          name: 'all_createDirective',
          component: () => import('@/views/common/IssueDirective/IssueDirective.vue'),
          meta: { title: '下发指令' },
        },
        {
          path: 'all_detailDirective',
          name: 'all_detailDirective',
          component: () => import('@/views/common/IssueDirective/IssueDirective.vue'),
          meta: { title: '指令详情' },
        },
        {
          path: 'directiveExecuteStatus',
          name: 'directiveExecuteStatus', // DirectiveExecuteStatusPlaceholder
          component: () =>
            import(
              '@/views/manageEnd/PropagandizeDirective/AllDirective/children/DirectiveExecuteStatus/DirectiveExecuteStatus.vue'
            ),
          meta: { title: ' 指令执行情况' },
        },
        {
          path: 'directiveExecuteStatus',
          name: 'DirectiveExecuteStatusPlaceholder', // DirectiveExecuteStatusPlaceholder
          component: () =>
            import(
              '@/views/manageEnd/PropagandizeDirective/AllDirective/children/DirectiveExecuteStatus/DirectiveExecuteStatusPlaceholder.vue'
            ),
          meta: { title: ' 指令执行情况' },
          children: [
            {
              path: 'directiveManuEffectAssess',
              name: 'directiveManuEffectAssess',
              component: () =>
                import('@/views/manageEnd/Home/EntryManuscript/Children/ManuEffectAssess/ManuEffectAssess.vue'),
              meta: { title: '稿件效果评估' },
            },
          ],
        },
        {
          path: 'directiveReshipDetails',
          name: 'directiveReshipDetails',
          component: () =>
            import(
              '@/views/manageEnd/PropagandizeDirective/AllDirective/children/DirectiveReshipDetails/DirectiveReshipDetails.vue'
            ),
          meta: { title: '网站反馈情况' },
        },
      ],
    },
    {
      path: 'pendingReviewDirective',
      name: 'pendingReviewDirectivePlaceholder',
      component: () =>
        import('@/views/manageEnd/PropagandizeDirective/PendingReviewDirective/PendingReviewDirectivePlaceholder.vue'),
      meta: { title: '待审核指令', hidden: true, whiteList: true },
      children: [
        {
          path: 'pendingReview_detailDirective',
          name: 'pendingReview_detailDirective',
          component: () => import('@/views/common/IssueDirective/IssueDirective.vue'),
          meta: { title: '指令详情' },
        },
      ],
    },
  ],
}
